projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66381cf
)
gtk/gtkapplication.c: Don't Include unistd.h Unconditionally
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Thu, 26 Dec 2013 08:15:10 +0000
(16:15 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Thu, 26 Dec 2013 08:15:10 +0000
(16:15 +0800)
This header, which is not universally available, is accidently made to be
included unconditionally during the refactoring of gtkapplication.c,
so restore the #ifdef check.
gtk/gtkapplication.c
patch
|
blob
|
history
diff --git
a/gtk/gtkapplication.c
b/gtk/gtkapplication.c
index 46540ab5eeb96cdef7dac1a6ecfad39027a73edb..ea5211b21111643efda2a7037f2964fbd33e1119 100644
(file)
--- a/
gtk/gtkapplication.c
+++ b/
gtk/gtkapplication.c
@@
-23,7
+23,11
@@
#include "gtkapplication.h"
#include <stdlib.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <string.h>
#include "gtkapplicationprivate.h"